package baohuajie.com.algorithm;

import lombok.extern.slf4j.Slf4j;
import org.apache.shardingsphere.api.sharding.hint.HintShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.hint.HintShardingValue;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * @author goujian
 * @description: TODO
 * @date 2022/3/2 6:15 下午
 */
@Slf4j
public class DataBaseHitAlgorithm implements HintShardingAlgorithm<String> {

    @Override
    public Collection<String> doSharding(Collection<String> availableTargetNames, HintShardingValue<String> shardingValue) {
        List<String> dd = new ArrayList<>();
        dd.add("dd");
        return dd;
    }
}
